package com.mx.base.language.script.remote

import com.mx.base.language.script.ResponseBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query


/**
 * @author: xiao.ma
 * Date: 2022/2/8 17:19
 * Desc:
 */

interface Api {
    @POST("/language/project")
    fun postProjectLanguage(@Body projectLanguage: ProjectLanguage)

    @GET("/language/project")
    fun getProjectLanguage(@Query("id") appId: String): Call<ProjectLanguage>

    @POST("/language")
    fun postLanguage(@Body bean: LanguageBean): Call<ResponseBody<Any>>

    @GET("/language")
    fun getLanguage(
        @Query("appId")
        appId: Long,
        @Query("moduleName")
        moduleName: String,
        @Query("languageName")
        languageName: String,
    ): Call<ResponseBody<LanguageBean>>
}